<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="Keywords" content="xx" />
        <meta name="description" content="xx"/>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate,max-age=0,post-check=0, pre-check=0,false">
        <meta http-equiv="Pragma" CONTENT="no-cache">
        <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
        <title>小尚服饰</title>
        <meta name="format-detection" content="telephone=no" />
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">

        <link href="/smfs/Public/mobile/css/nj_base.css" type="text/css" rel="stylesheet" />
        <link href="/smfs/Public/mobile/css/jquery.toast.min.css" rel="stylesheet" type="text/css"/>

        <script type="text/javascript" src="/smfs/Public/mobile/js/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="/smfs/Public/mobile/js/shopCommonSearch.js"></script>
        <link rel="stylesheet" type="text/css" href="/smfs/Public/mobile/css/shop_index.css">

        <link href="/smfs/Public/css/layui.css" rel="stylesheet" type="text/css" media="all"/>
        <script type="text/javascript" src="/smfs/Public/layui.js"></script>
    </head>
    <body>
        <!-- header-section start-->
        <div class="header-section header-fixed">
            <div class="header-content">
                <a href="javascript:history.back();" id="J-headerBack" class="header-back"></a>
                <div class="header-search">
                    <i class="search-icon"></i>
                    <input type="text"autocomplete="off" id="keywordShow" class="search-input" placeholder="搜索商品" maxlength="20">
                </div>
            </div>
        </div>
        <div class="search-layer-section hide" id="popSearchLayer">
            <div class="search-layer-box">
                <div class="header-section">
                    <div class="header-content" id="J-searchLayer">
                        <a href="javascript:;" class="search-cancel" id="J-searchCancel">取消</a>
                        <div class="header-search search-focus">
                            <i class="search-icon"></i>
                        <form action="<?php echo U('mobile/cha/index');?>" method="post">
                            <input type="text" name="keyword" autocomplete="off" class="search-input" value="" placeholder="输入商品名/货号">
                            <i id="J-searchClear" class="search-clear hide"></i>
                        </div>
                        <button class="search-btn">搜索</button>
                        </form>
                    </div>
                </div>
                <div class="search-layer-result scrollable">
                    <div class="search-result-cat">
                    <?php foreach ($cats as $v) { ?>
                        <div class="search-result-list">
                            <a href="<?php echo U('mobile/cha/index',array('catid'=>$v['cat_id']));?>">
                            <div class="search-result-hd">
                                <p class="cell result-item-title" style="margin-left:<?php echo ($v["lev"]); ?>em"><?php echo ($v["cat_name"]); ?></p>
                                <div class="result-item-arrow"></div>
                            </div>
                            </a>
                        </div>
                    <?php } ?>
                    </div>
                </div>
            </div>
        </div>
        <div class="input-mask hide" id="searchInputMask"></div>
        <div class="index-wrapper lazyimg">
            <!-- banner-section start -->
            <div class="banner-section">
                <img src="/smfs/Public/mobile/images/da.jpg"
                class="banner-img">
                <div class="banner-mask">
                </div>
                <div class="ui-flex banner-content">
                    <div class="cell banner-shop" id="shopInfoLink" detailFlag="1">
                        <span href="javascript:;" class="shop-logo">
                            <img src="/smfs/Public/mobile/images/xiao.jpg">
                        </span>
                        <!-- <div class="cell shop-info">
                            <span href="javascript:;" class="ui-flex shop-name">
                                <em>小尚服装</em>
                                <i class="cell a-icon"></i>
                            </span>
                            <span class="ui-flex shop-other">
                                <em class="cell follow-num">2507人关注</em>
                            </span>
                        </div> -->
                    </div>
                    <div id="J-followBtn" class="banner-action">
                        <span class="follow-text">小尚服装</span>
                    </div>
                </div>
            </div>
            <!-- banner-section end -->
            <!-- total-section start -->
            <div class="border-grids total-section">
                <div class="ui-flex total-centent">
                    <a href="<?php echo U('mobile/index/index');?>" class="cell">
                        <span class="total-num"><?php echo ($num); ?></span>
                        <span class="total-text">全部商品</span>
                    </a>
                    <a href="<?php echo U('mobile/index/index',array('g'=>'new'));?>" class="cell">
                        <span class="total-num"><?php echo ($new_num); ?></span>
                        <span class="total-text">新品</span>
                    </a>
                    <a href="<?php echo U('mobile/index/index',array('g'=>'hot'));?>" class="cell">
                        <span class="total-num"><?php echo ($hot_num); ?></span>
                        <span class="total-text">热销</span>
                    </a>
                </div>
            </div>
            <!-- total-section end -->
            <!-- 楼层显示 -->
            <div class="img-floor border-grids product-recom">
                <div class="floor-title"></div>
                <div class="product-list">
                <?php foreach ($goods as $v) { ?>
                    <a href="<?php echo U('mobile/good/index',array('id'=>$v['goods_id']));?>">
                        <span class="pro-img">
                            <img lay-src="/smfs<?php echo ($v["thumb_img"]); ?>" alt="<?php echo ($v["goods_name"]); ?>">
                        </span>
                        <span class="pro-desc">
                            <?php echo res_catname($v['cat_id']) ?> <?php echo ($v["goods_name"]); ?> <?php echo (mb_substr(strip_tags(htmlspecialchars_decode($v["goods_desc"])),0,20,'utf-8')); ?>...
                        </span>
                        <span class="pro-price">
                            <span class="price-info">
                                <em class="price-yen">¥</em>
                                <em class="price-int"><?php echo ($v["shop_price"]); ?></em>
                            </span>
                        </span>
                    </a>
                <?php } ?>
                </div>
            </div>
            <div class="tabbar-section">
                <ul id="J-tabbar" class="ui-flex tabbar-content">
                    <li class="cell J-other">
                        <a class="tabbar-nav" href="<?php echo U('mobile/xuqiu/index');?>">预约定制</a>
                    </li>
                    <li class="cell J-other">
                        <a class="tabbar-nav" href="tel:18902491208"><i class="service-icon-seller"></i>联系客服</a>
                    </li>
                </ul>
            </div>
        </div>
<script>
layui.use('flow', function(){
  var $ = layui.jquery;
  var flow = layui.flow;
 
  //按屏加载图片
  flow.lazyimg({
    elem: '.product-list img'
  });
  
});
</script>
    </body>
</html>